package com.easylinkin.linkappapi.rulecomponent.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.easylinkin.linkappapi.rulecomponent.entity.RuleComponentService;

/**
 * <p>
 * 规则组件 Mapper 接口
 * </p>
 *
 * @author liuming
 * @since 2020-08-27
 */
public interface RuleComponentServiceMapper extends BaseMapper<RuleComponentService> {

    List<RuleComponentService> getRuleComponentServices(@Param("ruleComponentService") RuleComponentService ruleComponentService);

    RuleComponentService getRuleComponentService(RuleComponentService ruleComponentService);
    
    List<RuleComponentService> getRuleComponentServiceList(@Param("ruleComponentService") RuleComponentService ruleComponentService);
    
    List<RuleComponentService> flushDeviceUnitData(@Param("deviceUnitId")String deviceUnitId,@Param("tenantId")String tenantId);

    int batchInsert(@Param("list") List<RuleComponentService> list);
}
